<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

require(APPPATH . 'core/admin.php');

class Friends extends Admin
{
    public function getPage()
    {
        return 'friends';
    }

    public function getMoreData()
    {
        $sql = "SELECT sName, sLogin, sEmail, sPhone, sAddress FROM users WHERE nGroupId = ?";
        $query = $this->db->query($sql, array($this->session->userdata('groupId')));
        $data['friends'] = $query->row_array();

        return $data;
    }
}